<template>
    <div id="ip" class="h-300px"></div>
</template>

<script setup lang="ts">
import * as echarts from 'echarts';

onMounted(() => {
    const chartDom = document.getElementById('ip');
    const myChart = echarts.init(chartDom);
    let option;

    option = {
        xAxis: {
            type: 'category',
            data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
        },
        yAxis: {
            type: 'value'
        },
        series: [
            {
                data: [150, 230, 224, 218, 135, 147, 260],
                type: 'line'
            }
        ]
    };

    option && myChart.setOption(option);
})
</script>

<style scoped></style>